package com.yhd.admin.mapper;

import java.util.List;
import com.yhd.admin.bean.Role;
import com.yhd.admin.utils.QueryWrapper;

public interface RoleMapper {
    List<Role> selectRoles(QueryWrapper<Role> query);
    
    int selectCount(Role role);
    
    int add(Role role);
    
    Role selectRoleByName(String name);
    
    int updateRole(Role role);
}